<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@page import="java.util.*, proyecto.modelo.Seguimiento" %>
<%@page import="proyecto.dao.SeguimientoDAO" %>
<html xmlns="http://www.w3.org/1999/xhtml">
    <script type="text/javascript">
        function time()
        {
            getTime()
            setInterval("getTime()",1000)
        }

        function getTime()
        {
            var currentTime = new Date()
            time= currentTime.toLocaleString()
            document.getElementById("time").innerHTML=time
        }
    </script>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>JCENTELL®DexterSoft</title>
        <link href="css/principal.css" rel="stylesheet" type="text/css" />
    </head>

    <body bgcolor="#853F3F" alink="" vlink="" link="" onload="time()"><br/><br/>
        <table width="960" border="0" height="720" align="center" background="imagenes/bgtable1.png" vspace="10">
            <tr>
                <td width="280" height="110"><img src="imagenes/logo_jcentell1_small.png" width="280" height="90" border="0" usemap="#Map2"/></td>
                <td width="104">&nbsp;</td>
                <td width="280">
                                        <%@ include file="menu_admin.jsp" %>
                </td>
                <td width="278">
                                        <%@ include file="log.jsp" %>
                </td>
            </tr>
            <tr height="24">
                <td height="24" colspan="3" background="imagenes/barra_horizontal_root.png" class="ruta">== <a href="index.jsp">JCENTELL</a> / <a href="index_admin.jsp">Administrador</a> / Seguimientos</td>
                <td width="278" height="24" background="imagenes/barra_horizontal_time.png"> &nbsp;<span id="time" class="hora2"></span></td>
            </tr>
            <tr>
                <td height="52"colspan="2">&nbsp;</td>
                <td width="280"><div align="right"><img src="imagenes/btn_desp_adm.png" width="200" height="50" border="0" usemap="#Map8" /></div></td>
                <td width="278"><img src="imagenes/btn_antes_ope.png" width="200" height="50" border="0" usemap="#Map7" /></td>
            </tr>
            <tr>
                <td colspan="4" height="20"><img src="imagenes/barra_horizontal.png" /></td>
            </tr>
            <tr>
                <td height="498" colspan="4">
                    <table width="954" height="444" border="0">
                        <tr>
                            <td width="126" height="24">&nbsp;</td>
                            <td width="96">&nbsp;</td>
                            <td width="101" height="25">&nbsp;</td>
                            <td width="156"><img src="imagenes/adm_ses_ant_todas.png" width="156" height="22" border="0" usemap="#Map12" /></td>
                            <td width="156"><img src="imagenes/adm_all_ant_25.png" width="156" height="22" border="0" usemap="#Map13" /></td>
                            <td width="156"><img src="imagenes/adm_lls_ant_buscar.png" width="156" height="22" border="0" usemap="#Map14" /></td>
                            <td width="133">&nbsp;</td>
                        </tr>
                        <tr>
                            <td height="50" colspan="2"><img src="imagenes/hor_btn_ant_lls.png" width="226" height="50" border="0" usemap="#Map" /></td>

                            <td colspan="5" rowspan="8">
                                <%--AQUI IRA EL CODE--%>
                                <table border="1" align="center"  bordercolor="" bordercolordark="#289B59" bordercolorlight="#289B59" bgcolor="black">
                                    <tr bgcolor="#289B59">
                                        <th align="center">NUMERO TELEF&Oacute;NICO</th>
                                        <th align="center">NOMBRE CLIENTE</th>
                                        <th align="center">FECHA 1</th>
                                        <th align="center">ATENCI&Oacute;1</th>
                                        <th align="center">ESTADO</th>
                                    </tr>
                                    <%//AQUI IRA LA TABLA DE EMPRESAS.
                                                SeguimientoDAO dao = new SeguimientoDAO();
                                                Collection<Seguimiento> s = new ArrayList<Seguimiento>();
                                                s = dao.buscarAll("%");
                                                //
                                                int i = 0;
                                                if (s != null) {
                                                    for (Seguimiento vo : s) {
                                                        if (i % 2 != 0) {
                                                            out.println("<tr bgcolor='#CCCCCC'>");
                                                        } else {
                                                            out.println("<tr bgcolor='#939393'>");
                                                        }
                                                        out.println("<td align='left'>" + vo.getNumtelefonico() + "</td>");
                                                        out.println("<td align='left'>" + vo.getNomcliente() + "</td>");
                                                        out.println("<td align='left'>" + vo.getFecha1seg() + "</td>");
                                                        out.println("<td align='left'>" + vo.getAtencion1() + "</td>");
                                                        out.println("<td align='left'>" + vo.getNomestado() + "</td>");
                                                        out.println("</tr>");
                                                        i++;
                                                    }
                                                }
                                    %>
                                </table>
                                <%--AQUI IRA EL CODE--%>
                            </td>
                        </tr>
                        <tr>
                            <td height="50" colspan="2"><img src="imagenes/hor_btn_ant_cls.png" width="226" height="50" border="0" usemap="#Map3" /></td>
                        </tr>
                        <tr>
                            <td height="50" colspan="2"><img src="imagenes/hor_btn_ant_ems.png" width="226" height="50" border="0" usemap="#Map4" /></td>
                        </tr>
                        <tr>
                            <td height="50" colspan="2"><img src="imagenes/hor_btn_des_ses.png" width="226" height="50" border="0" usemap="#Map5" />
                            </td>
                        </tr>
                        <tr>
                            <td height="50" colspan="2"><img src="imagenes/hor_btn_ant_res.png" width="226" height="50" border="0" usemap="#Map6" /></td>
                        </tr>
                        <tr>
                            <td height="50" colspan="2"><img src="imagenes/hor_btn_ant_uss.png" width="226" height="50" border="0" usemap="#Map9" /></td>
                        </tr>
                        <tr>
                            <td height="50" colspan="2"><img src="imagenes/hor_btn_ant_tes.png" width="226" height="50" border="0" usemap="#Map10" /></td>
                        </tr>
                        <tr>
                            <td height="50" colspan="2"><img src="imagenes/hor_btn_ant_ext.png" width="226" height="50" border="0" usemap="#Map11" /></td>
                        </tr>
                        <tr>
                            <td colspan="7" height="21">&nbsp;</td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <map name="Map2" id="Map2"><area shape="rect" coords="6,3,267,87" href="index.jsp" />
        </map>
        <map name="Map7" id="Map7">
            <area shape="rect" coords="2,2,198,47" href="index_oper.jsp" />
        </map>
        <map name="Map8" id="Map8"><area shape="rect" coords="2,3,198,46" href="index_admin.jsp" />
        </map>

        <map name="Map" id="Map"><area shape="rect" coords="0,0,226,50" href="adm_lls.jsp" />
        </map>
        <map name="Map3" id="Map3"><area shape="rect" coords="0,0,226,50" href="adm_cls.jsp" />
        </map>
        <map name="Map4" id="Map4"><area shape="rect" coords="0,0,226,50" href="adm_ems.jsp" />
        </map>
        <map name="Map5" id="Map5"><area shape="rect" coords="0,0,226,50" href="adm_ses.jsp" />
        </map>
        <map name="Map6" id="Map6"><area shape="rect" coords="0,0,226,50" href="adm_res.jsp" />
        </map>
        <map name="Map9" id="Map9"><area shape="rect" coords="0,0,226,50" href="adm_uss.jsp" />
        </map>
        <map name="Map10" id="Map10"><area shape="rect" coords="0,0,226,50" href="adm_tes.jsp" />
        </map>
        <map name="Map11" id="Map11"><area shape="rect" coords="0,0,226,50" href="adm_ext.jsp" />
        </map>
        <map name="Map12" id="Map12"><area shape="rect" coords="0,0,156,22" href="adm_ses.jsp" />
        </map>
        <map name="Map13" id="Map13"><area shape="rect" coords="0,0,156,22" href="adm_ses_25.jsp" />
        </map>
        <map name="Map14" id="Map14"><area shape="rect" coords="0,0,156,22" href="adm_ses_find.jsp" />
        </map></body>
</html>
